<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://www.hx.com/tags" prefix="hx" %>
<%   String path = request.getContextPath();   
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
	<title>无标题文档</title>
	<link href="css/style.css" rel="stylesheet" type="text/css">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,,user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">
    <link href="/bootstrapDemo/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/bootstrapDemo/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
     <script src="/bootstrapDemo/js/jquery.js"></script>
 	<script src="/bootstrapDemo/bootstrap/js/bootstrap.min.js"></script>
 	<script src="/bootTest/js/my.js"></script>
	<hx:ajax jquery="true"/>
	<style type="text/css">
		body{
			background-color: white;
		}
		a:HOVER {
				color: red;
			}
	</style>
	<script type="text/javascript">
	
	function toYuYue(opid){
		location.href="<%=basePath%>/online/getAllOnlineListByOpId.action?online.OpenID="+opid;
	}
	
	function toZj(opid){
		location.href="<%=basePath%>/award/getAwresultByOpenId.action?awresult.userOpenId="+opid;
	}
	</script>
	</head>
	<body>
		<ol class="breadcrumb">
		  <li class="active">会员信息管理</li>
		</ol>
		<div>
			
		</div>
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			class="thetable" style="font-size: 13px;margin-top: 10px;">
			<tr align="center">
				<td colspan="6">
			      <div style="width: 95%;background-color:#F0F0F0;" class="panel panel-default">
			      	<div class="panel-heading" style="text-align: left">会员列表
				    </div>
				  	<table class="table table-bordered" style="font-size: 12px;text-align: center;">
				  		<tr style="background-color: #eee;border: 0" >
						<!-- 	<td width="5%" align="center" valign="middle">
						头像
					</td> -->
					<td width="15%" align="center" valign="middle">
						昵称
					</td>
					 <td width="20%" align="center" valign="middle">
						手机号
					</td>
					 <td width="20%" align="center" valign="middle">
						地址
					</td>
					<td width="10%" align="center" valign="middle">
						关注时间
					</td>
					<td width="25%" align="center" valign="middle">
						操作
					</td>		
						 </tr>
				  		<s:iterator value="allUserList" id="wuser" status="statu">
						 	 <tr onMouseOut="this.style.background='#fff'"
								onMouseOver="this.style.background='#F4E088'" style="background-color: #fff;">
								<%-- <td>
									<img   style="width: 50px;height: 50px;" src="<s:property value="#wuser.WHeadimgurl"/>">
								</td> --%>
								<td ><s:property value="#wuser.WNickname"/>(${wuser.WSex=='1'?'男':'女' })</td>		
								<td ><s:property value="#wuser.WPhone"/></td>		
								<td ><s:property value="#wuser.WCountry"/> <s:property value="#wuser.WProvince"/>  <s:property value="#wuser.WCity"/></td>		
								<td ><s:property value="#wuser.subTime"/></td>		
								<td >
								<button type="button" class="btn btn-success" style="height: 20px;line-height: 8px;" onclick="toYuYue('<s:property value="#wuser.WOpenid"/>')">查看预约订单</button>		
								<button type="button" class="btn btn-danger" style="height: 20px;line-height: 8px;" onclick="toZj('<s:property value="#wuser.WOpenid"/>')">查看中奖信息</button>
								</td>		
							 </tr>

						 </s:iterator>
					  </table>
					</div>
				</td>
			</tr>
			<tr align="center" style="background-color: #cccccc;height: 30px;line-height: 30px;font-size: 14px;font-weight: bold;cursor: pointer;">
				<td colspan="2">当前第${pageData.startPage}页      共${pageData.totlePage}页</td>
				<td><a href="<%=basePath%>/user/getAllWuserList.action?currentPage=${pageData.currentPage-1}">上一页</a>   <a href="<%=basePath%>/user/getAllWuserList.action?currentPage=${pageData.currentPage+1}">下一页</a></td>
				<td></td>
				<td colspan="2">当前第${pageData.startNum}-${pageData.endNum}条    共${pageData.totle}条</td>
			</tr>
		</table>
	</body>
</html>

